﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PM_Bas_Styles.aspx.cs" Inherits="PM_Bas_Styles" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>款号资料</title>
    <script src="../js/extTools.js" type="text/javascript"></script>
    <style>
        .x-grid-row-over .x-grid-cell-inner
        {
            font-weight: bold;
        }
        .x-column-header-inner
        {
            height: 28px;
            background: #E7EBEF url(./images/header.png) repeat-x 0 0;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Crisp" />
        <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
            <Items>
                <ext:Hidden ID="FormatType" runat="server" />
                <ext:GridPanel ID="GridPanel1" runat="server" TitleAlign="Center" Region="North"
                    Height="300" Split="true" Collapsible="true" Frame="true">
                    <TopBar>
                        <ext:Toolbar ID="Toolbar1" runat="server" Layout="Column" Width="0.1">
                            <Items>
                                <ext:MultiUpload ID="MultiUpload1" runat="server" OnFileUpload="MultiUpload1_FileUpload"
                                    AutoStartUpload="true" FileDropAnywhere="true" FileSizeLimit="15 MB" FileTypes="*.*"
                                    FileTypesDescription="All Files" FileUploadLimit="100" FileQueueLimit="0">
                                    <Button>
                                        <ext:Button runat="server" Text="打开本地文件..." Icon="FolderGo"></ext:Button>
                                    </Button>
                                    <Listeners>
                                        <UploadStart Handler="Ext.Msg.wait('导入中，请稍等...');" />
                                        <UploadError Fn="uploadError" />
                                        <FileSelectionError Fn="fileSelectionError" />
                                        <UploadComplete Handler="Ext.Msg.hide();" />
                                    </Listeners>
                                </ext:MultiUpload>
                                <ext:Component ID="Component1" runat="server" Width="0.1" />
                                <ext:Button ID="Button1" runat="server" Text="资料导入到恒康系统" OnDirectClick="BtnColorGroup"
                                    UI="Primary" Icon="ArrowRedo">
                                    <DirectEvents>
                                        <Click>
                                            <EventMask ShowMask="true" Msg="加载中...">
                                            </EventMask>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                                <ext:Button ID="Button2" runat="server" Text="导入成份资料" OnDirectClick="BtnStyleElements"
                                    UI="Info" Icon="ArrowEw" Visible="false">
                                    <DirectEvents>
                                        <Click>
                                            <EventMask ShowMask="true" Msg="加载中...">
                                            </EventMask>
                                        </Click>
                                    </DirectEvents>
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </TopBar>
                    <Store>
                        <ext:Store ID="Store1" runat="server" PageSize="100" OnReadData="RefreshDataSet"
                            OnSubmitData="Store1_Submit">
                            <Model>
                                <ext:Model ID="Model1" runat="server" IDProperty="shopcode">
                                    <Fields>
                                        <ext:ModelField Name="shopcode" Mapping="店铺代码" />
                                        <ext:ModelField Name="shopname" Mapping="店铺简称" />
                                        <ext:ModelField Name="shopfullname" Mapping="店铺全称" />
                                        <ext:ModelField Name="stockname" Mapping="对应仓库" />
                                        <ext:ModelField Name="markname" Mapping="商场名称" />
                                        <ext:ModelField Name="OperationAreaName" Mapping="业务地区" />
                                        <ext:ModelField Name="address" Mapping="店铺地址" />
                                        <ext:ModelField Name="FullName" Mapping="行政地区" />
                                        <ext:ModelField Name="findsaleday" Mapping="销售报表查询天数" />
                                        <ext:ModelField Name="telphone" Mapping="店铺电话" />
                                        <ext:ModelField Name="checkstate" Mapping="审核状态" />
                                        <ext:ModelField Name="sellermobile" Mapping="卖家手机" />
                                        <ext:ModelField Name="sellerphone" Mapping="卖家座机" />
                                        <ext:ModelField Name="sellerzipcode" Mapping="卖家邮编" />
                                        <ext:ModelField Name="selleraddr" Mapping="卖家地址" />
                                        <ext:ModelField Name="sellerdesc" Mapping="网店描述" />
                                        <ext:ModelField Name="kddate" Mapping="开店日期" />
                                        <ext:ModelField Name="gddate" Mapping="关店日期" />
                                        <ext:ModelField Name="shoparea" Mapping="营业面积" />
                                        <ext:ModelField Name="stockarea" Mapping="仓储面积" />
                                        <ext:ModelField Name="infoname" Mapping="经营性质" />
                                        <ext:ModelField Name="vendcustname" Mapping="所属加盟商" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" />
                    </SelectionModel>
                </ext:GridPanel>
                <ext:GridPanel runat="server" ID="GridPanel2" Region="Center">
                    <Store>
                        <ext:Store runat="server" ID="Store3">
                            <Fields>
                                <ext:ModelField Name="款号" />
                                <ext:ModelField Name="物料简称" />
                                <ext:ModelField Name="成份" />
                                <ext:ModelField Name="比例" />
                                <ext:ModelField Name="备注" />
                            </Fields>
                        </ext:Store>
                    </Store>
                    <ColumnModel>
                        <Columns>
                            <ext:Column ID="Column1" runat="server" DataIndex="款号" Text="款号" />
                            <ext:Column ID="Column2" runat="server" DataIndex="物料简称" Text="物料简称" />
                            <ext:Column ID="Column3" runat="server" DataIndex="成份" Text="成份" />
                            <ext:Column ID="Column4" runat="server" DataIndex="比例" Text="比例" />
                            <ext:Column ID="Column5" runat="server" DataIndex="备注" Text="备注" />
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:RowSelectionModel ID="RowSelectionModel2" runat="server" />
                    </SelectionModel>
                </ext:GridPanel>
            </Items>
        </ext:Viewport>
    </div>
    </form>
</body>
</html>
